import request from '@/utils/request'
import qs from 'qs'

// /ycyp/page
export const ycypPage = params => {
  return request({
    url: '/ycyp/page?' + qs.stringify(params),
    method: 'POST'
  })
}

//  新增 & 修改 /ycyp/save
export const saveYcyp = data => {
  return request({
    url: '/ycyp/save',
    method: 'POST',
    data
  })
}

// 删除 /ycyp/delete
export const deleteYcyp = params => {
  return request({
    url: '/ycyp/delete?' + qs.stringify(params),
    method: 'POST'
  })
}
